
import { IsNotEmpty, IsString, IsOptional, ValidateIf, IsUUID, IsNumber, isNumber, IsEnum } from 'class-validator';

export class UpdateFriendshipsDto {

    @IsUUID()
    friendships_id: string;

    @IsOptional()
    @ValidateIf(o => o.phone != '')
    @IsEnum([1, 2, 3])
    status: number | null;

    @IsOptional()
    @ValidateIf(o => o.phone != '')
    @IsEnum([0, 1])
    block_status: number | null;
}